﻿using Learun.Util;
using System.Collections.Generic;

namespace Learun.Application.TwoDevelopment.ZZDT_EC
{
    public interface ec_Wire_Group_TemplateIBLL
    {
        #region 获取数据
        /// <summary>
        /// 获取列表数据
        /// <param name="queryJson">查询参数</param>
        /// <summary>
        /// <returns></returns>
        IEnumerable<ec_Wire_Group_TemplateEntity> GetList(string queryJson, Pagination pagination = null);
        /// <summary>
        /// 获取实体数据
        /// <param name="keyValue">主键</param>
        /// <summary>
        /// <returns></returns>
        ec_Wire_Group_TemplateEntity GetEntity(string keyValue, string ProjectId);
        #endregion

        #region 提交数据
        /// <summary>
        /// 删除实体数据
        /// <param name="keyValue">主键</param>
        /// <summary>
        /// <returns></returns>
        void DeleteEntity(string keyValue, string ProjectId);
        /// <summary>
        /// 保存实体数据（新增、修改）
        /// <param name="keyValue">主键</param>
        /// <summary>
        /// <returns></returns>
        void SaveEntity(string keyValue, ec_Wire_Group_TemplateEntity entity, string ProjectId);

        /// <summary>
        /// 初始化项目信号模板。
        /// </summary> 
        /// <param name="WireGroupTemplateID"></param>
        /// <param name="ProjectId"></param>
        /// <returns></returns>
        void InitProjectWireGroupTemplate(string WireGroupTemplateID, string ProjectId);
        #endregion

    }
}
